package com.example.demo.study;

import java.io.*;
import java.util.regex.Pattern;

public class Study07 {

    public static int max(int a,int b ){
        return a>b?a:b;
    }

    public static void main(String[] args) throws IOException {


        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str;
        System.out.println("Enter lines of text.");
        System.out.println("Enter 'end' to quit.");
        do {
            str = br.readLine();
            System.out.println(str);
        } while (!str.equals("end"));


//          Study07 study07 = new Study07();
//          int n = study07.max(10,3);
//        int n = max(10,3);
//
//          System.out.println(n);

//
//        String pattern = ".*runoob.*";
//
//        boolean isMatch = Pattern.matches(pattern, content);
//        System.out.println("字符串中是否包含了 'runoob' 子字符串? " + isMatch);
    }
}
